Ext.define('Mayfle.model.user.User', {
    extend: 'Ext.data.Model',

    fields: [
        { name: 'id', type: 'auto' },
        { name: 'name', type: 'auto' },
        { name: 'orgName', type: 'auto' },
        { name: 'priceOnline', type: 'auto' }

    ],
    idProperty: 'id',
	proxy:{
		type:'ajax',
		cors:true,
		url:'http://localhost:8080/com.mayfle.origin.api/rest/sys/base/index/amc/push',
		reader:{
			rootProperty:'data.products',
			totalProperty:'data.pageinfo.totalCount'
		}
	}
});
